package tt.com.deadcold.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;
import tt.com.common.enums.Status;
import tt.com.common.model.DeadColdRoom;
import tt.com.common.util.CommonResult;
import tt.com.deadcold.mapper.DeadColdMapper;
import tt.com.deadcold.mapper.colddeadMapper;
import tt.com.deadcold.service.RemainsUnearthed;

import java.util.Date;

@Service
public class RemainsUnearthedImpl extends ServiceImpl<colddeadMapper, DeadColdRoom> implements RemainsUnearthed {
    @Override
    public CommonResult updateRutime(DeadColdRoom deadColdRoom, Integer refrigerateStatus, Date lastuptime, String lastupUserid) {
        if (deadColdRoom==null){
            return CommonResult.buildR(Status.DEFAULT,"没有该数据，无法修改");
        }else {
            baseMapper.updateById(deadColdRoom);
            return CommonResult.buildR(Status.OK,"修改成功");
        }

    }
}
